import './assets/main.css'

import { createApp } from 'vue';
import App from './App.vue';
import router from './router'  // 确保router文件夹中有index.js文件
import { createPinia } from 'pinia'
//引入ElementPlus组件库样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

//  引入vant组件库样式
import 'vant/lib/index.css';
//vant组件引入区

const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(router);

//使用vant组件


//使用或挂载ElementPlus
app.use(ElementPlus)

app.use(createPinia())
app.mount('#app');